POV-Ray : Newsgroups : povray.beta-test : #error bug : #error bug Server Time
2 Nov 2024 17:19:41 EDT (-0400)
  #error bug  
From: Rune
Date: 20 Oct 2001 06:26:38
Message: <3bd1515e$1@news.povray.org>
Bug: When using the #error directive the string is not printed.

From the POV-Ray documentation:

--------------------
6.2.7.1  Text Message Streams
The syntax for a text message is any of the following:

TEXT_STREAM_DIRECTIVE:
    #debug STRING | #error STRING | #warning STRING

Where STRING is any valid string of text including string identifiers or
functions which return strings.
--------------------

But when running the following scene:

--------------------
#declare String = "B must be a positive number!"

#error String
--------------------

POV-Ray prints the following to the message pane:

--------------------
File: C:\Programmer\POV-scenes\#Mine\35tests\Errorbug.pov  Line: 5


#error String <----ERROR

Parse Error: User error directive hit.


Returned from renderer with error status
--------------------

IIRC this has been the behavior in any version of POV-Ray I know of.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.